<template>
  <div id="app">
    <MyCategory title="游戏">
      <template scope="tx">
        <ul>
          <li v-for="(itme,index) in tx.games" :key="index">{{ itme}}</li>
        </ul>
      </template>
    </MyCategory>
    <MyCategory title="游戏">
      <template scope="tx">
        <ol style="color:hotpink">
          <li v-for="(itme,index) in tx.games" :key="index">{{ itme}}</li>
        </ol>
      </template>
    </MyCategory>
    <MyCategory title="游戏">
      <template scope="tx">
          <h4 v-for="(itme,index) in tx.games" :key="index">{{ itme}}</h4>
      </template>
    </MyCategory>
  </div>
</template>
<script>
import MyCategory from './components/MyCategory'
export default {
name:'App',
components:{MyCategory},
}
</script>
<style>
#app,.foot{
  display: flex;
  justify-content: space-around;
}
h4{
  text-align: center;
}
</style>